package cn.liziy.controller;

import cn.liziy.entity.User;
import cn.liziy.service.UserService;
import cn.liziy.service.impl.UserServiceImpl;
import liziy.spring.beans.factory.annotation.Autowired;
import liziy.spring.beans.factory.annotation.Scope;
import liziy.spring.beans.factory.config.BeanDefinition;
import liziy.spring.core.stereotype.Controller;

import javax.jws.soap.SOAPBinding;

/**
 * @author Liziy
 * @date 2020/12/18 19:08
 **/
@Controller
public class UserController {
    @Autowired
    private UserService userService;

    public User getUser(int id){
        return userService.getUserById(id);
    }


}
